import axios from 'axios'

const menus= {
    // 获取菜品数据
    findAllMenu: function (data) {
        return axios({
            url: '/admin/findAllMenu',
            method: 'POST',
            data
         
        })
    },
    //菜品搜索
    searchMenu: function (data) {
        return axios({
            url: '/admin/searchMenu',
            method: 'POST',
            data
         
        })
    },
    //菜品详情
    menuDetail: function (data) {
        return axios({
            url: '/admin/menuDetail',
            method: 'POST',
            data
         
        })
    },
    //修改菜品
    updateMenu: function (data) {
        return axios({
            url: '/admin/updateMenu',
            method: 'POST',
            data
        })
    },

}
export default menus;